﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.CompletionMaterialsEntity.Model
{
    /// <summary> 
    /// 竣工资料—工程项目竣工资料材料类型表
    /// </summary> 
    [Serializable]
    [ModelMap("Bcd_ProFileType", new string[] { "Pft_ID" })]
    public class BcdProfiletypeInfo : BaseEntity
    {
        public BcdProfiletypeInfo()
        {

        }


        private string _pftId;
        /// <summary>
        /// 项目材料类型主键
        /// </summary>
        [ColumnMap("Pft_ID", System.Data.DbType.String)]
        public string Pft_ID
        {
            get { return _pftId; }
            set
            {
                if (object.Equals(this._pftId, value) != true)
                {
                    this._pftId = value;
                    this.RaisePropertyChanged("Pft_ID");
                }
            }
        }


        private string _pftPid;
        /// <summary>
        /// 项目材料类型父键
        /// </summary>
        [ColumnMap("Pft_PID", System.Data.DbType.String)]
        public string Pft_PID
        {
            get { return _pftPid; }
            set
            {
                if (object.Equals(this._pftPid, value) != true)
                {
                    this._pftPid = value;
                    this.RaisePropertyChanged("Pft_PID");
                }
            }
        }


        private string _pftPids;
        /// <summary>
        /// 项目材料类型父类ID集合
        /// </summary>
        [ColumnMap("Pft_PIds", System.Data.DbType.String)]
        public string Pft_PIds
        {
            get { return _pftPids; }
            set
            {
                if (object.Equals(this._pftPids, value) != true)
                {
                    this._pftPids = value;
                    this.RaisePropertyChanged("Pft_PIds");
                }
            }
        }


        private int _pId;
        /// <summary>
        /// 项目ID
        /// </summary>
        [ColumnMap("P_ID", System.Data.DbType.Int32)]
        public int P_ID
        {
            get { return _pId; }
            set
            {
                if (object.Equals(this._pId, value) != true)
                {
                    this._pId = value;
                    this.RaisePropertyChanged("P_ID");
                }
            }
        }


        private string _pName;
        /// <summary>
        /// 项目名称
        /// </summary>
        [ColumnMap("P_Name", System.Data.DbType.String)]
        public string P_Name
        {
            get { return _pName; }
            set
            {
                if (object.Equals(this._pName, value) != true)
                {
                    this._pName = value;
                    this.RaisePropertyChanged("P_Name");
                }
            }
        }


        private string _pCode;
        /// <summary>
        /// 项目编号
        /// </summary>
        [ColumnMap("P_Code", System.Data.DbType.String)]
        public string P_Code
        {
            get { return _pCode; }
            set
            {
                if (object.Equals(this._pCode, value) != true)
                {
                    this._pCode = value;
                    this.RaisePropertyChanged("P_Code");
                }
            }
        }


        private string _pftSection;
        /// <summary>
        /// 标段
        /// </summary>
        [ColumnMap("Pft_Section", System.Data.DbType.String)]
        public string Pft_Section
        {
            get { return _pftSection; }
            set
            {
                if (object.Equals(this._pftSection, value) != true)
                {
                    this._pftSection = value;
                    this.RaisePropertyChanged("Pft_Section");
                }
            }
        }


        private string _pftUnit;
        /// <summary>
        /// 编制单位
        /// </summary>
        [ColumnMap("Pft_Unit", System.Data.DbType.String)]
        public string Pft_Unit
        {
            get { return _pftUnit; }
            set
            {
                if (object.Equals(this._pftUnit, value) != true)
                {
                    this._pftUnit = value;
                    this.RaisePropertyChanged("Pft_Unit");
                }
            }
        }


        private int _pftOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Pft_OperateUserID", System.Data.DbType.Int32)]
        public int Pft_OperateUserID
        {
            get { return _pftOperateuserid; }
            set
            {
                if (object.Equals(this._pftOperateuserid, value) != true)
                {
                    this._pftOperateuserid = value;
                    this.RaisePropertyChanged("Pft_OperateUserID");
                }
            }
        }


        private string _pftOperateusername;
        /// <summary>
        /// 操作人名
        /// </summary>
        [ColumnMap("Pft_OperateUserName", System.Data.DbType.String)]
        public string Pft_OperateUserName
        {
            get { return _pftOperateusername; }
            set
            {
                if (object.Equals(this._pftOperateusername, value) != true)
                {
                    this._pftOperateusername = value;
                    this.RaisePropertyChanged("Pft_OperateUserName");
                }
            }
        }


        private DateTime _pftOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Pft_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Pft_OperateTime
        {
            get { return _pftOperatetime; }
            set
            {
                if (object.Equals(this._pftOperatetime, value) != true)
                {
                    this._pftOperatetime = value;
                    this.RaisePropertyChanged("Pft_OperateTime");
                }
            }
        }


        private string _fdId;
        /// <summary>
        /// 材料类型ID(值为null时为自定义类型)
        /// </summary>
        [ColumnMap("Fd_ID", System.Data.DbType.String)]
        public string Fd_ID
        {
            get { return _fdId; }
            set
            {
                if (object.Equals(this._fdId, value) != true)
                {
                    this._fdId = value;
                    this.RaisePropertyChanged("Fd_ID");
                }
            }
        }


        private int _fdOrder;
        /// <summary>
        /// 材料类型排序
        /// </summary>
        [ColumnMap("Fd_Order", System.Data.DbType.Int32)]
        public int Fd_Order
        {
            get { return _fdOrder; }
            set
            {
                if (object.Equals(this._fdOrder, value) != true)
                {
                    this._fdOrder = value;
                    this.RaisePropertyChanged("Fd_Order");
                }
            }
        }


        private string _fdNumb;
        /// <summary>
        /// 材料类型序号
        /// </summary>
        [ColumnMap("Fd_Numb", System.Data.DbType.String)]
        public string Fd_Numb
        {
            get { return _fdNumb; }
            set
            {
                if (object.Equals(this._fdNumb, value) != true)
                {
                    this._fdNumb = value;
                    this.RaisePropertyChanged("Fd_Numb");
                }
            }
        }


        private string _fdName;
        /// <summary>
        /// 材料类型归档内容
        /// </summary>
        [ColumnMap("Fd_Name", System.Data.DbType.String)]
        public string Fd_Name
        {
            get { return _fdName; }
            set
            {
                if (object.Equals(this._fdName, value) != true)
                {
                    this._fdName = value;
                    this.RaisePropertyChanged("Fd_Name");
                }
            }
        }


        private string _fdCode;
        /// <summary>
        /// 材料类型档案号
        /// </summary>
        [ColumnMap("Fd_Code", System.Data.DbType.String)]
        public string Fd_Code
        {
            get { return _fdCode; }
            set
            {
                if (object.Equals(this._fdCode, value) != true)
                {
                    this._fdCode = value;
                    this.RaisePropertyChanged("Fd_Code");
                }
            }
        }


        private int _fdKit;
        /// <summary>
        /// 材料类型编制套数
        /// </summary>
        [ColumnMap("Fd_Kit", System.Data.DbType.Int32)]
        public int Fd_Kit
        {
            get { return _fdKit; }
            set
            {
                if (object.Equals(this._fdKit, value) != true)
                {
                    this._fdKit = value;
                    this.RaisePropertyChanged("Fd_Kit");
                }
            }
        }


        private string _fdKept;
        /// <summary>
        /// 保管期限(永久、长期、短期、30年)
        /// </summary>
        [ColumnMap("Fd_Kept", System.Data.DbType.String)]
        public string Fd_Kept
        {
            get { return _fdKept; }
            set
            {
                if (object.Equals(this._fdKept, value) != true)
                {
                    this._fdKept = value;
                    this.RaisePropertyChanged("Fd_Kept");
                }
            }
        }


        private string _fdUtype;
        /// <summary>
        /// 编制单位类型(项目法人，设计单位，施工单位，监理单位，施工、监理，相关单位)
        /// </summary>
        [ColumnMap("Fd_UType", System.Data.DbType.String)]
        public string Fd_UType
        {
            get { return _fdUtype; }
            set
            {
                if (object.Equals(this._fdUtype, value) != true)
                {
                    this._fdUtype = value;
                    this.RaisePropertyChanged("Fd_UType");
                }
            }
        }


        private string _fdTable;
        /// <summary>
        /// 材料类型表格号
        /// </summary>
        [ColumnMap("Fd_Table", System.Data.DbType.String)]
        public string Fd_Table
        {
            get { return _fdTable; }
            set
            {
                if (object.Equals(this._fdTable, value) != true)
                {
                    this._fdTable = value;
                    this.RaisePropertyChanged("Fd_Table");
                }
            }
        }


        private string _fdRemark;
        /// <summary>
        /// 材料类型备注
        /// </summary>
        [ColumnMap("Fd_Remark", System.Data.DbType.String)]
        public string Fd_Remark
        {
            get { return _fdRemark; }
            set
            {
                if (object.Equals(this._fdRemark, value) != true)
                {
                    this._fdRemark = value;
                    this.RaisePropertyChanged("Fd_Remark");
                }
            }
        }


        private bool _fdImportant;
        /// <summary>
        /// 此类型材料是否重要(0=不重要,1=重要)
        /// </summary>
        [ColumnMap("Fd_Important", System.Data.DbType.Boolean)]
        public bool Fd_Important
        {
            get { return _fdImportant; }
            set
            {
                if (object.Equals(this._fdImportant, value) != true)
                {
                    this._fdImportant = value;
                    this.RaisePropertyChanged("Fd_Important");
                }
            }
        }


        private string _fdDuty;
        /// <summary>
        /// 此资料负责人
        /// </summary>
        [ColumnMap("Fd_Duty", System.Data.DbType.String)]
        public string Fd_Duty
        {
            get { return _fdDuty; }
            set
            {
                if (object.Equals(this._fdDuty, value) != true)
                {
                    this._fdDuty = value;
                    this.RaisePropertyChanged("Fd_Duty");
                }
            }
        }

    }
}



